package com.bajiao.mapper.config;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bajiao.entity.config.Config;
import com.bajiao.vo.config.ConfigVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 系统配置
 * @Author: FanJq
 * @Date:   2024-10-1006-02
 * @Version: V1.0
 */
public interface ConfigMapper extends BaseMapper<Config> {

    List<Config> queryConfigByConfigName(String configName);

    String queryValueByConfigName(String configName);

    String queryTitleByGroupAndValue(String configGroup,String configValue);

    String queryValueByGroup(String configGroup);

    List<ConfigVO> queryNameAndValueByGroup(String configGroup);

    List<ConfigVO> queryConfigList(String configGroup);

    ConfigVO queryConfig(@Param("configGroup") String configGroup, @Param("configName") String configName);
}
